<!--我的微群右侧 右侧导航-->
<div class="mainSide">


<!--用户相关信息等-->
{template "topic_right_ajax.inc"}


<!--右侧顶部广告-->
  <!--{eval SetADV('group_myhome','middle_right_top');}-->
<!--右侧顶部广告-->

<!--{hook/global_usernav_extra2}-->

   <script language="javascript">
		$(document).ready(function(){
		
		/*
		* ajax 右侧显示数据
		* 这里的函数可以随便更改位置，加载的顺序也会不同。
		*/
		
		//热门微群
		//get_hotweiqun();
		
		//同城微群
		<!--{if $member['city']}-->
		    get_city_qun();
		<!--{/if}-->
		//微群分类
		get_qun_category();
				
		});
		
		//热门微群
		function get_hotweiqun(){			
			right_show_ajax('{$member[uid]}','hotweiqun','hotweiqun');
		}
		
		//同城微群
		function get_city_qun(){			
			right_show_ajax('{$member[uid]}','city_qun','city_qun');
		}
		
		//群分类
		function get_qun_category(){			
			right_show_ajax('{$member[uid]}','qun_category','qun_category');
		}
		
	</script>
	

  
   <div class="side">
	<h3>
	{$this->Config[changeword][weiqun]}分类<a href="javascript:void(0);" onclick="right_show_ajax('{$member[uid]}','qun_category','qun_category'); return false;"></a>
	</h3>
	<div class="sideul">
		<div id="{$member[uid]}_qun_category"></div>
	</div>
  </div>

<!--{if $hot_qun}-->
  <div class="side">
  <script type="text/javascript" src="js/qun.js"></script>
	<h3>
	推荐{$this->Config[changeword][weiqun]}<a href="javascript:void(0);" onclick="right_show_ajax('{$member[uid]}','hotweiqun','hotweiqun'); return false;"></a>
	</h3>
	<div class="sideul">
		<div id="1_hotweiqun">
			<div id="interestUid">
			  <ul class="followList" style="overflow:hidden">
				<!--{loop $hot_qun $val}-->
				<li class="pane" id="follow_user_{$val[uid]}">
				  <div class="fBox_l"><img onerror="javascript:faceError(this);" src="{$val[icon]}"/> </div>
				  <div class="fBox_R "> <p><span class="name"><a href="index.php?mod=qun&qid={$val[qid]}" >{$val['name']}</a></span> </p>
				  <p>{$val['member_num']}人&nbsp;&nbsp;|&nbsp;&nbsp;{$val['thread_num']}条{$this->Config[changeword][n_weibo]}</p>
				  <span> <a href="javascript:;" onclick="joinQun({$val[qid]})">加入{$this->Config[changeword][weiqun]}</a>	</span> 
				  </div>
				</li>
				<!--{/loop}-->
			  </ul>
			</div>
		</div>
	</div>
  </div>
  <!--{/if}-->
  
  <!--{if $member['city']}-->
  <div class="side" id="city_qun_div">
	<h3>
	<!--{eval $member_city = str_replace('市','',$member['city']);}-->
	{$member_city}{$this->Config[changeword][weiqun]}<a  href="javascript:void(0);" onclick="right_show_ajax('{$member[uid]}','city_qun','city_qun'); return false;"></a>
	</h3>
	<div class="sideul">
		<div id="{$member[uid]}_city_qun"></div>
	</div>
  </div>
  <!--{/if}-->
  
<!--{template 'topic_right_common.ini'}-->

</div>
